# -*- coding: utf-8 -*-
from django.http import HttpResponse
from django.shortcuts import render_to_response
import os

def default(request):
    return render_to_response('index.html', {})

def main(request):
    return render_to_response('main.html', {})

def index(request, dirname):
    text = "Hello world"
    text = text + dirname
    text = text +"<br>"
    text = text + os.path.join(os.path.abspath(dirname), "media")
    return HttpResponse(text)
